package com.wxzhou.wangzhuan.dto.pay;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 汇付八方4.15用户纳税协议
 */
public class HuifuTaxAgreementReq implements Serializable {


    //绑定的应用ID
    private String appid;

    //用户唯一账号信息(用户id)
    private String account;

    //是否同意
    @JsonProperty("is_agree")
    private Integer is_agree = 1;

    //同意时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime agree_time;

    public HuifuTaxAgreementReq() {
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @JsonProperty("is_agree")
    public Integer getIs_agree() {
        return is_agree;
    }

    public void setIs_agree(Integer is_agree) {
        this.is_agree = is_agree;
    }

    public LocalDateTime getAgree_time() {
        return LocalDateTime.now();
    }
}
